package bma.common.netty.thrift.dual;

import org.apache.thrift.TBase;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TMessage;
import org.apache.thrift.protocol.TProtocol;

public interface NTSRequest {

	public TMessage getHeader();
	
	public void setHeader(TMessage msg);

	public <TYPE extends TBase> TYPE readArgs(TYPE args) throws TException;

	public void end(TBase data, Throwable err);

	public TProtocol getInputProtocol();

	public TProtocol getOutputProtocol(boolean newOne);
	
	public NTSClient getClient();
}
